import java.util.Scanner;

/*public class Main {
    public static int max3(int x,int y,int n) {
        int m=max2(x,y);
        int a=max2(y,n);
        return max2(m,a);
    }
    public static int max2(int x,int y) {
        return x>=y?x:y;
    }
//输出三个数中的最大值
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int a= scan.nextInt();
        int b= scan.nextInt();
        int c= scan.nextInt();
        int d=max3(a,b,c);
        System.out.println(d);
    }
}*/
/*//就n个阶乘之和
public class Main {
    public static int jc(int n) {
        int jc=1;
        for(int i=1;i<=n;i++){
            jc*=i;
        }
        return jc;
    }

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int a= scan.nextInt();
        int sum=0;
        for(int m=1;m<=a;m++){
            sum+=jc(m);
        }
        System.out.println(sum);
    }
}*/
/*//斐波那契数列循环求第n项
public class Main {
    public static void main(String[] args) {
        int a=1,b=1,c=2;
        Scanner scan=new Scanner(System.in);
        int n= scan.nextInt();
        int d=n/3;
        int e=n%3;
        if(n==1||n==2){
            System.out.println(a);
        }
        else if (n==3){
            System.out.println(c);
        }
        else {
            for (int i = 1; i <= d; i++) {
                a = b + c;
                b = a + c;
                c = a + b;
            }
            if(e==1){
                System.out.println(a);
            } else if (e==2) {
                System.out.println(b);
            }
            else {
                System.out.println(c);
            }
        }
    }
}*/
/*public class Main {
    public static int sum(int x,int y) {
        return x+y;
    }

    public static double sum(double x,double y,double z) {
        return x+y+z;
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
            double a = scan.nextDouble();
            double b = scan.nextDouble();
            double c = scan.nextDouble();
            double d=sum(a,b,c);
        System.out.println(d);
        }

    }*/
/*public class Main {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int a= scan.nextInt();
        int b= scan.nextInt();
        System.out.println(max(a,b));
        double c= scan.nextDouble();
        double d= scan.nextDouble();
        double e= scan.nextDouble();
        System.out.println(max(c,d,e));
    }
    public static int max(int x,int y) {
        return x>y?x:y;
    }
    public static double max(double a,double b,double c) {
        double x=a>b?a:b;
        double y=b>c?b:c;
        return x>y?x:y;
    }//重载相关
}*/
